Added pagination to search page