autoform refactor for companies and events