Added refreshLoop to reload data every 60 seconds