move totals row from <tbody> to <tfoot>

move totals row from `tbody` to `tfoot`