fixed bug: switch from pause menu to main menu