rough draft of detecting page changes