beautify the dialog