adds elements to main form, adds MyClass