making results page dynamic