search update with pagination working