update refreshMonitor function