changed the all the "Form1" to "MainForm"