menu button fix

remove the menu create and add function to menu button to open dialog
menu