change ErrorDialog to wx.MessageBox