convert from $scope to "that"