refresh selectedCity when leaving