moving most of the Panel contents to its new superclass UIElement