Implement search and pagination