change the view and secured.loggedin