cda: standardise curly brackets, prettify dialogs