add paging to search sample