only set user css on .md
fix error messages, add .html to open dialog