I would move all these lines to `ThreadUI`, due to the markup is related with that panel. Please cache the elements, otherwise you will asking for them in every hash change.