proper paging for search results