move dialogs to separate package