why can't you just create the container here (with `createThreadContainer`) and then inject in the DOM at the right place with `insertContainer`, and then doing the following code that would just work ?