support publishing widgets as fields(#9)

- produce a class with fields for  widgets,  layout is set up in constructor