refactoring - moved dialogs to separate module