script to load the options menu in a page using swipe interaction