Fixed an issue when the daily_averages query returned no results and added in a refresh button