moved loggedIn template to main page