Dialog code reformat.