Change from wxNotebook to wxAuiNotebook for the tab controls - much more powerful