update to login and view preview templates