added map function to results page