Implemented the pagination bar on search page