added onBackPressed to main menu