(function(){
'use strict';

angular
  .module('secondLead',
  	['ngDragDrop',
  	'ui.bootstrap',
  	'ui.router',
  	'gridster',
  	'restangular',
    'angularUtils.directives.dirPagination',
    'secondLead.common',
  	'templates'])

  .config(function(paginationTemplateProvider) {
    paginationTemplateProvider.setPath('/dirPagination.html');
  })

  .config(['$stateProvider',
    '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
    $stateProvider

      .state('dramas', {
        url:'/dramas',
        templateUrl: 'dramas-index.html',
        controller:'DramasCtrl',
        controllerAs: 'dramas'
      })

      .state('casts', {
        url:'/casts',
        templateUrl: 'casts-index.html',
        controller:'CastsCtrl',
        controllerAs: 'casts'
      })

      .state('cast', {
        url:'/casts/:castID',
        templateUrl: 'casts-show.html',
        controller:'CastCtrl',
        controllerAs: 'cast',
        resolve: {
          cast: ['$stateParams','CastModel','Restangular', function($stateParams,CastModel,Restangular) {
              return CastModel.getOne($stateParams.castID);
          }]
        }
      })

      .state('user', {
        url:'/users/:userID',
        templateUrl: 'user-show.html',
        controller:'UserCtrl',
        controllerAs: 'user',
        resolve: {
          user: ['$stateParams','UserModel','Restangular', function($stateParams,UserModel,Restangular) {
              return UserModel.getOne($stateParams.userID);
          }]
        }
      })

      .state('user.lists', {
        url:'/lists',
        templateUrl: 'lists-index.html',
        controller:'ListsCtrl',
        controllerAs: 'lists',
        resolve: {
          lists: ['user', function(user) {
            return user["lists"];
          }]
        }
      })

      .state('user.list', {
      url:'/lists/:listID',
      templateUrl: 'list-show.html',
      controller:'ListCtrl',
      controllerAs: 'list',
      resolve: {
        list: ['$stateParams','ListModel','Restangular', function($stateParams,ListModel,Restangular) {
            return ListModel.getOne($stateParams.userID, $stateParams.listID);
        }]
      }
    })

    $urlRouterProvider.otherwise('/');
  }]);

})();
@@ -627,32 +627,399 @@
 amas'%0A      %7D)%0A%0A
+      .state('drama', %7B   %0A      url:'/dramas/:dramaID',%0A      templateUrl: 'drama-show.html',%0A      controller:'DramaCtrl',%0A      controllerAs: 'drama',%0A      resolve: %7B%0A        drama: %5B'$stateParams','DramaModel','Restangular', function($stateParams,DramaModel,Restangular) %7B%0A            return DramaModel.getOne($stateParams.dramaID);%0A        %7D%5D%0A      %7D%0A      %7D)%0A%0A
       .state('ca
@@ -1240,17 +1240,16 @@
 l: 'cast
-s
 -show.ht
@@ -1894,33 +1894,43 @@
      %7D%0A      %7D)%0A
-%0A
+        %0A  
       .state('us
@@ -1937,24 +1937,65 @@
 er.lists', %7B
+     //Indented because nested under user
 %0A        url
@@ -1987,24 +1987,26 @@
 ser%0A        
+  
 url:'/lists'
@@ -1999,32 +1999,34 @@
   url:'/lists',%0A
+  
         template
@@ -2050,32 +2050,34 @@
 .html',%0A        
+ 
+ 
 controller:'List
@@ -2084,32 +2084,34 @@
 sCtrl',%0A        
+  
 controllerAs: 'l
@@ -2117,32 +2117,34 @@
 lists',%0A        
+ 
+ 
 resolve: %7B%0A     
@@ -2130,32 +2130,34 @@
      resolve: %7B%0A
+  
           lists:
@@ -2191,24 +2191,26 @@
             
+  
 return user%5B
@@ -2221,32 +2221,34 @@
 ts%22%5D;%0A          
+  
 %7D%5D%0A        %7D%0A   
@@ -2234,34 +2234,38 @@
      %7D%5D%0A        
+ 
+ 
 %7D%0A
+  
       %7D)%0A%0A      
@@ -2250,32 +2250,34 @@
   %7D%0A        %7D)%0A%0A
+  
       .state('us
@@ -2283,25 +2283,70 @@
 ser.list', %7B
-%0A
+       //Indented because nested under user%0A  
       url:'/
@@ -2359,32 +2359,34 @@
 :listID',%0A      
+ 
+ 
 templateUrl: 'li
@@ -2398,32 +2398,34 @@
 ow.html',%0A      
+  
 controller:'List
@@ -2427,24 +2427,26 @@
 'ListCtrl',%0A
+  
       contro
@@ -2459,32 +2459,34 @@
 : 'list',%0A      
+  
 resolve: %7B%0A     
@@ -2472,32 +2472,34 @@
      resolve: %7B%0A
+  
         list: %5B'
@@ -2594,24 +2594,26 @@
             
+  
 return ListM
@@ -2667,32 +2667,34 @@
 istID);%0A        
+  
 %7D%5D%0A      %7D%0A    %7D
@@ -2682,26 +2682,30 @@
    %7D%5D%0A      
-%7D%0A
+  %7D%0A  
     %7D)%0A%0A    

Add drama state to stateProvider