Made everything work to show results page and show page