added paging to search