Setup if then statement for results on results page.