/// <summary>
        /// add labels inside the frame
        /// </summary>
        /// <param name="list">The list.</param>
        public async void LableFrames(IList <string> list)
        {
            var             userid       = DependencyService.Get <IDatabaseInterface>().GetId();
            LabelRepository firebasedata = new LabelRepository();
            var             alllabels    = await firebasedata.GetAllLabels();

            ////display labels
            foreach (NoteLabel model in alllabels)
            {
                foreach (var labelId in list)
                {
                    if (model.Labelkey.Equals(labelId))
                    {
                        ////add label name to Label text
                        var labelName = new Label
                        {
                            Text = model.Noteslabel,
                            HorizontalOptions = LayoutOptions.Start,
                            VerticalOptions   = LayoutOptions.Start,
                            FontSize          = 11
                        };

                        ////add new label frame inside the note
                        var labelFrame = new Frame
                        {
                            CornerRadius    = 28,
                            HeightRequest   = 14,
                            WidthRequest    = 14,
                            Content         = labelName,
                            BorderColor     = Color.Gray,
                            BackgroundColor = Color.Aqua
                        };
                        // Note note = await this.FirebaseHelperVar.GetNoteByNoteId(NoteKey, userid);

                        //BackgroundColor = note.NoteColor;
                        layout.Children.Add(labelFrame);

                        var labelimage = new TapGestureRecognizer();
                        labelimage.Tapped += TapLabel_tapped;
                        labelFrame.GestureRecognizers.Add(labelimage);
                    }
                }
            }
        }