Template.latestActivitiesByTypeTable.helpers({
  tableData: function () {
    // Set instance variable for consistency
    var instance = Template.instance();

    // Get the parent template
    var parent = instance.parent();

    // Get latest residents activity from parent template
    var latestResidentActivities = parent.latestResidentsActivityByType.get();

    if (latestResidentActivities) {
      return latestResidentActivities;
    }

    // Columns name, timeAgo
  }
});

@@ -161,49 +161,36 @@
     
-// Get the parent template%0A    var parent
+var latestResidentActivities
  = i
@@ -209,38 +209,24 @@
 nt()
-;%0A%0A    // Get 
+.
 latest
- r
+R
 esidents
  act
@@ -225,47 +225,39 @@
 ents
- a
+A
 ctivity
- from parent template
+ByType.get();%0A
 %0A    
-var 
+if (
 late
@@ -280,18 +280,25 @@
 ties
- = parent.
+) %7B%0A      return 
 late
@@ -311,147 +311,243 @@
 dent
-s
 Activit
-yByType.get();%0A%0A    if (latestResidentActivities) %7B%0A      return latestResidentActivities;%0A    %7D%0A%0A    // Columns name, timeAgo
+ies;%0A    %7D else %7B%0A      return %5B%5D;%0A    %7D%0A  %7D%0A%7D);%0A%0ATemplate.latestActivitiesByTypeTable.created = function () %7B%0A  // Set instance variable for consistency%0A  instance = Template.instance();%0A%0A  instance.autorun(function () %7B%0A
 %0A  %7D
+);
 %0A%7D
-)
 ;%0A

Add basic table data toggle