define(['./module'],function(controllers){
    'use strict';
    controllers.controller('mainCtrl',['$scope','$rootScope', '$http' ,function($scope,$rootScope, $http){

        $scope.showRigthSide = "_hide";

        $scope.addProblem = function () {
            $scope.showRigthSide = "";
        };

        $scope.rightSidePointerClick = function () {
            $scope.showRigthSide = "_hide";
        };
        $scope.hideDiv = function() {
            $rootScope.$broadcast('Update', '_hide');
        };
        $rootScope.$on("Update", function(event, message) {
            if ($scope.showRigthSide != message){
            $scope.showRigthSide = message;
        }
        });
    }]);
});

@@ -161,17 +161,16 @@
 $http)%7B%0A
-%0A
         
@@ -180,42 +180,235 @@
 ope.
-showRigthSide = %22_hide%22;%0A%0A
+getTitles = function() %7B%0A            $http(%7B method: 'GET', url: 'http://ita-kv.tk:8090/api/getTitles' %7D).success(function (data) %7B%0A        $scope.data = data;%0A        for (var i = 0; i %3C $scope.data.length; i++) %7B%0A    
         
 $sco
@@ -407,25 +407,123 @@
     
+if (
 $scope.
-addProblem
+data%5Bi%5D.Alias === 'about') $scope.data.splice(i,1);%0A        %7D%0A        %7D);%0A         $scope.deleteResource
  = f
@@ -521,34 +521,38 @@
 ource = function
- 
 (
+Alias
 ) %7B%0A            
@@ -556,32 +556,61 @@
    $
-scope.showRigthSide = %22%22
+http.delete('/api/deleteResource/' + Alias)%0A        %7D
 ;%0A  
@@ -618,16 +618,24 @@
      %7D;%0A
+        
 %0A       
@@ -646,29 +646,59 @@
 ope.
-rightSidePointerClick
+showRigthSide = %22_hide%22;%0A%0A        $scope.addProblem
  = f
@@ -746,21 +746,16 @@
 Side = %22
-_hide
 %22;%0A     
@@ -815,47 +815,37 @@
    $
-rootScope.$broadcast('Update', '
+scope.showRigthSide = %22
 _hide
-')
+%22
 ;%0A  

Update main-controller.js