Fix the following issues:
  - When orientation change, the session storage was lost
  - Geolocation api not working