Removed call to getTaskGroups from controller, this should now be done in views.
Added helper for rendering task group.