added pagination to search results