Update thread_ui.js