refreshScheduled function executes on dashboard page load