Core pr 4

Minor javascript fixes to update the page after login.