$scope.addParticipant = function () {
        $scope.selectedTask.participants = $scope.selectedTask.participants || [];
        $scope.selectedTask.participants.push({
            userId: $scope.participant.model._id,
            name: $scope.participant.model.profile.name,