fixes dialog display of html