updated menus and set up the gesture detector