Changed parent for message dialogs to Window