fixes search next page issue
adds ajax to the pagination