debug output for dialog