partial implementation of general WidgetContainer class