updated search pagination