converted mainmenu to a directive. Main controller now has a loggedIn bool. mainmenu will differ based on the value