search with pagination