add timer to fix 'page loading error' after loggedIn