detect new page load. function update.