use wx.App subclass
simplify