refs #16183. Avoid use of alert() and some ergonomy/cosmetic improvements.