Added paginate for search results