added proper switch to main menu