change MainForm view; small code fix;