Made BaseWidget add itself to its parents.