Separated MainForm UI logic from editing methods