adding page numbers for when new results are rendered