add pagination of search results