moved the trackUserLocation function to the router