updating code from kmaps to include main menu and adding login/out link