updating the page counter at the top