Set the current page at the same time of the total number of records