Renaming preview refs to view

Also rename
Show logout only if user is logged in.