Adding pagination for search results