Add logic to schedule page refresh