this should go to thread_ui.js's `init` method.

for now, this should at least go to thread_ui.js if you don't want to change the init method yet.