prevent pagination from showing up when there are no results from search to display