geolocation working on app load but needs improvement