updating views with loged-in checking