       @showNewGroupModal = ko.observable false
 
       @animalDetailsModalOptions = ko.observable false
-      @containerModalOptions = ko.observable false
-
-      @newContainer = ko.observable ''
+      @containerModalOptions =
+        group: ko.observable undefined
+        items: ko.observableArray []
+#        newContainer: ko.observable undefined
+
+#      @newContainer = ko.observable ''
 
       @moveAnimalModalOptions =
         animals: ko.observableArray []

        @resetContainerAdding()


      @containers_list = ko.observableArray []
      @workers_list = ko.observableArray []
      @natures_list = ko.observableArray []
      @production_support_list = ko.observableArray []

        @showNewGroupModal false

      @addContainer = =>
        # Lets JQuery to do this simple task, no need an observable for that.
        name = $("#containers_list").val()
        id = $("input[name='containers_list']").val()

#        newContainer = new golumn.Container(@newContainer().id, @newContainer().name, @containerModalOptions())
        newContainer = G.Container(id, name, @containerModalOptions.items)
        @containerModalOptions.group().push newContainer

#        if @droppedAnimals().length > 0
#          #Send animals by values instead of observableArray reference
#          animals = []
#          ko.utils.arrayForEach @droppedAnimals(), (a) =>
#            animals.push a

          @toggleMoveAnimalModal(animals,newContainer);

