MainFrame now free of the global variable 'cc1' (ChartCanvas), which is already member data.