move gpx submission to a service and add logic to submit previous route after you loginto osm