added handler for geolocation