fixed: lots of const references
fixed: Error state above another state did not hide the other dismissable state
fixed: multiline messages in prompt state were formatted wrong