This should be implemented like https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/elements/contextmenu.html Please talk with @amirnissim , he knows how to do this