added a switch function to the display function instead of keeping it in the bulk of the code. Next, I'll add the logic into the switch statement, too, not just the html text.