changed button if statement to only show if there is link text