Added search pagination