search pagination working