Updating first & last page