the action of dismiss does not seem to match returning the text attribute. I think the naming could be better, or just kept as separate methods so there's no confusion.