ui-dialog improvements