Updated search bar to only render pages if > 1