added basic command handling for main menu and exit button that had been
removed