void GemMenuButton_Clicked(object sender, EventArgs e)
        {
            View menuView = masterStack.Children.FirstOrDefault(pick => pick.ClassId == Constants.CUSTOMLISTMENU_VIEW_CLASS_ID);
            if (menuView != null)
            {
                HideCommentsPopup();
                return;
            }
            
            List<CustomListViewItem> menuItems = new List<CustomListViewItem>();
            menuItems.Add(new CustomListViewItem { Name = "Edit", EmotionID = CurrentGemId.ToString(),EventID = string.Empty, SliderValue = 0 });
			menuItems.Add(new CustomListViewItem { Name = "Copy", EmotionID = CurrentGemId.ToString(), EventID = string.Empty, SliderValue = 0 });
			if (isSharedToCommunity) 
			{// chk current status of community sharing - add hide option accordingly.
				menuItems.Add (new CustomListViewItem {
					Name = "Hide",
					EmotionID = CurrentGemId.ToString (),
					EventID = string.Empty,
					SliderValue = 0
				});
			}

			menuItems.Add(new CustomListViewItem { Name = "Delete", EmotionID = CurrentGemId.ToString(), EventID = string.Empty, SliderValue = 0 });

            PurposeColor.screens.CustomListMenu GemMenu = new screens.CustomListMenu(masterLayout, menuItems);
            //GemMenu.WidthRequest = App.screenWidth * .50;
            //GemMenu.HeightRequest = App.screenHeight * .40;
            GemMenu.ClassId = Constants.CUSTOMLISTMENU_VIEW_CLASS_ID;
            GemMenu.listView.ItemSelected += GemMenu_ItemSelected;
			masterStack.AddChildToLayout(GemMenu, Device.OnPlatform(64, 63, 62), Device.OnPlatform(2, 4, 4));
        }
		void GemMenuButton_Clicked(object sender, EventArgs e)
		{
			CustomImageButton btn = sender as CustomImageButton;
			CustomLayout sellayout = null;
			if( btn != null )
			{
				sellayout = (CustomLayout) masterStackLayout.Children.FirstOrDefault (itm => itm.ClassId == "masterstack" + btn.ClassId);
			}

			View menuView = sellayout.Children.FirstOrDefault(pick => pick.ClassId == Constants.CUSTOMLISTMENU_VIEW_CLASS_ID);
			if (menuView != null)
			{
				HideMenuPopUp ( sellayout,menuView );
				return;
			}

			List<CustomListViewItem> menuItems = new List<CustomListViewItem>();
			menuItems.Add(new CustomListViewItem { Name = "Remove", EmotionID = CurrentGemId.ToString(), EventID = btn.ClassId, SliderValue = 0 });

			PurposeColor.screens.CustomListMenu GemMenu = new screens.CustomListMenu(masterLayout, menuItems);
			//GemMenu.WidthRequest = App.screenWidth * .50;
			//GemMenu.HeightRequest = App.screenHeight * .40;
			GemMenu.ClassId = Constants.CUSTOMLISTMENU_VIEW_CLASS_ID;
			GemMenu.listView.ItemSelected += GemMenu_ItemSelected;

			if (sellayout != null)
			{
				sellayout.AddChildToLayout(GemMenu, 52, 4);
			}

			//masterStack.Children.Add (GemMenu, new Point (20, btn.Y));
		}