add the funcnction of switch the city and refresh the weather