When changing rootApp the actual DOM has to be cleared