       $scope.filters.taskDefinition = taskDef
     setTaskDefFromTaskKey($scope.taskData.taskKey)
     # Student Name options
-    $scope.studentNameChanged = $scope.applyFilters
+    $scope.studentNameChanged = applyFilters
     # Finds a task (or null) given its task key
     findTaskForTaskKey = (key) -> _.find($scope.tasks, (t) -> t.hasTaskKey(key))
     # Initially not watching the task key

      taskDef = $scope.unit.taskDef(taskDefId) if taskDefId?
      $scope.filters.taskDefinition = taskDef
      refreshData() if $scope.isTaskDefMode
      $scope.applyFilters()
    # Set new taskDefinitionIdSelected if task def mode and taskDefAbbr set
    setTaskDefFromTaskKey = (taskKey) ->
      # Only applicable in taskDefMode

      # Tasks for feedback or tasks for task, depending on the data source
      $scope.taskData.source.query { id: $scope.unit.id, task_def_id: $scope.filters.taskDefinitionIdSelected },
        (response) ->
          $scope.tasks = $scope.unit.incorporateTasks(response, applyFilters)
          # If loading via task definitions, fill
          if $scope.isTaskDefMode
            unstartedTasks = $scope.unit.fillWithUnStartedTasks($scope.tasks, $scope.filters.taskDefinitionIdSelected)
            _.extend($scope.tasks, unstartedTasks)
          # Apply initial filters
          applyFilters()
          # Load initial set task, either the one provided (by the URL)
          # then load actual task in now or the first task that applies
          # to the given set of filters.
