Fixed escape function to main menu