add current page and total pages