adjusted application js so that page reloads and ajax links refresh sign in