move the geolocation detection to Wizard

so that we can reuse it in the Region page