add pagination to search results