add pagination to search