move dialogs to widgets.