       @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 []

        @showNewGroupModal false

      @addContainer = =>
        newContainer = new golumn.Container(@newContainer().id, @newContainer().name, @containerModalOptions())
        @containers.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);


      @droppedAnimals = ko.observableArray []


#
#
#      @displayedContainers = (group) =>
#
#        c = ko.utils.arrayFilter @containers(), (c) =>
#          c.group_id() == group.id
#
#        return @sortContainerByPosition c


      @sortContainerByPosition = (containers) =>
