improve rendering of popup error/warning messages