add message box for exceptions in main window