projectResource.update(routeArgs, p,  function() {
                $scope.original = angular.copy($scope.project);
                var msg = "Project details updated successfully.";
                console.log(msg); alert(msg);
            }, function() {