fixing main menu state