added main menu and login/register through the menu