             
             if 0 == index { // selected first elemet
                 item.selectedState()
+                container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgSelectedColor
             }
             
             item.image = nil

            where !shouldSelect {
            return
        }
        
        if selectedIndex != currentIndex {
            let animationItem : RAMAnimatedTabBarItem = items[currentIndex]
            animationItem.playAnimation()
            
            let deselectItem = items[selectedIndex]
            deselectItem.deselectAnimation()
            
            selectedIndex = gestureView.tag
            delegate?.tabBarController?(self, didSelectViewController: self)

            textLabel.font = UIFont.systemFontOfSize(10)
            textLabel.textAlignment = NSTextAlignment.Center
            textLabel.translatesAutoresizingMaskIntoConstraints = false

            container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgDefaultColor
            
            container.addSubview(icon)
            createConstraints(icon, container: container, size: itemImage.size, yOffset: -5)
