generated scaffolding for widgets