Updated MainForm.cs