adding paging to search