UI: Fix table header template to support groupBy method