refactoring logged in vs logged out views