converted to use layout.dlgwrapHTML