checking for change every 10 seconds and updating the page