Added MainForm class