Added an if statement to decide when to display a certain text.