Pass attributes to XWidgets; decrease form nesting