Add pagination to the search results page