added geolocation code for initial location