changed view on index if user logged or not