move geolocation code to mapster lib and widget