add paginate and search