set up the main menu with working exit button