Fix buttons to fetch data for the time displayed