Application.Controllers.controller('projectsProject',
                                   ["$scope", "provStep", "ui",
                                    "project", "current", "pubsub", projectsProject]);

function projectsProject ($scope, provStep, ui, project, current, pubsub) {
    $scope.isActive = function (tab) {
        return tab === $scope.activeTab;
    };

    current.setProject(project);
    pubsub.send("sidebar.project");

    provStep.addProject(project.id);
    $scope.project = project;

    $scope.showTabs = function() {
        return ui.showToolbarTabs(project.id);
    };

    $scope.showFiles = function() {
        return ui.showFiles(project.id);
    };
}

@@ -178,16 +178,62 @@
 pubsub%22,
+ %22recent%22,%0A                                   
  project
@@ -321,55 +321,24 @@
 bsub
-) %7B%0A    $scope.isActive = function (tab
+, recent
 ) %7B%0A    
     
@@ -337,50 +337,36 @@
     
- 
-   return tab === $scope.activeTab;%0A    %7D
+recent.resetLast(project.id)
 ;%0A%0A 
@@ -675,11 +675,99 @@
 ;%0A    %7D;
+%0A%0A    $scope.isActive = function (tab) %7B%0A        return tab === $scope.activeTab;%0A    %7D;
 %0A%7D%0A

Move code around to put functions at bottom.