call this "appendContainerToThread", move it to a first-level method, don't call `createThreadContainer` inside but rather give it the fragment as argument