Link forms to classes and add methods