poll for changes in the document