Put the HTML for top button in the wrong if statement