Updating the current page counter if there is one