Application.Directives.directive("navbar", navbarDirective);

function navbarDirective() {
    return {
        scope: true,
        restrict: "AE",
        replace: true,
        templateUrl: "index/navbar.html",
        controller: "navbarDirectiveController"
    };
}

Application.Controllers.controller("navbarDirectiveController",
                                   ["$scope", "ui", "current", "$state",
                                    navbarDirectiveController]);

function navbarDirectiveController($scope, ui, current, $state) {
    // This is needed to toggle the menu closed when an item is selected.
    // This is a part of how ui-bootstrap interacts with the menus and
    // the menu item does an ng-click.
    $scope.status = {
        isopen: false
    };

    $scope.create = function(action) {
        var projectID = current.projectID();
        var route = "projects.project." + action + ".create";
        $scope.status = false;
        $state.go(route, {id: projectID});
    };
}

@@ -378,14 +378,8 @@
 pe%22,
- %22ui%22,
  %22cu
@@ -395,16 +395,32 @@
 $state%22,
+ %22projectState%22,
 %0A       
@@ -524,12 +524,8 @@
 ope,
- ui,
  cur
@@ -536,16 +536,30 @@
 , $state
+, projectState
 ) %7B%0A    
@@ -936,16 +936,100 @@
 reate%22;%0A
+        var state = null;%0A        var stateID = projectState.add(projectID, state);%0A
         
@@ -1090,16 +1090,30 @@
 rojectID
+, sid: stateID
 %7D);%0A    

Fix New menu to work with state.