Adding pagination in the results page