further dialogs refactoring