-{{ for $threads as $item }}
-<div id="tread-wrapper-$item.id" class="tread-wrapper {{ if $item.threaded }}threaded{{ endif }}">
+$live_update
+
+{{ for $threads as $thread }}
+
+<div id="tread-wrapper-$thread.id" class="tread-wrapper {{ if $thread.threaded }}threaded{{ endif }} $thread.toplevel">
+