implemented load main view on login