adding removeChildren to base classes
moving functions to base classes