update the last page