make use of getParent() in AbstractWidget