Added listener for main menu.