update page after login