use standard syntax for creating widgets programmatically