update recent city function