Bug fix for menu

reworking of input method for menu and button