Before changing main menu