move totals row from `tbody` to `tfoot`