put pagination in for the search page