Add pagination to search results