updating the page handler