Added refresh button and refactored get weather data code