added template to handle loggedin view