-<table class='display' id='hazelnut-{{ domid }}'>
-<thead><tr> {% for subject_field in subject_fields %}
-<th>{{ subject_field }}</th>{% endfor %}
-</tr></thead>
+<div id='main-{{ domid }}'>
+<table class='table table-striped table-bordered dataTable' id='hazelnut-{{ domid }}'>
+<thead><tr> {% for column in columns %}
+<th>{{ column }}</th>{% endfor %} {% if checkboxes %}<th>+/-</th>{% endif %}
+</tr></thead>
<tbody>
</tbody>
+<tfoot><tr> {% for column in columns %}
+<th>{{ column }}</th>{% endfor %} {% if checkboxes %}<th>+/-</th>{% endif %}
+</tr></tfoot>
</table>
+</div>
+<div class="hazelnut-spacer"></div>