added function and error plugins. added dynamic fields on the MainForm