authentication and main menu