added second pagination for search page