Add classes to dialogs.