adding and using an internal method to wait for page changes to stop