Hide pagination if 1 page and update params on search