done with search and paginate