Moved location of popup div and removed loading dialog when logging out