added different views depending on if logged in or logged out