App separated from chart1, global data is still a mess. MessageBox separated.