initialize dialogs