search pagination working ok