renamed Form1 to MainForm