         addTag(tag)
         let cell = collectionView.cellForItemAtIndexPath(indexPath) as! TagCell
         cell.backgroundColor = tagCellSelectedColor
-        
-    }
-    
-    
+    }
+
     func collectionView(collectionView: UICollectionView, didDeselectItemAtIndexPath indexPath: NSIndexPath) {
         let tag = defaultTags[indexPath.item]
         removeTag(tag)
         let cell = collectionView.cellForItemAtIndexPath(indexPath) as! TagCell
         cell.backgroundColor = tagCellDeselectedColor
-        
-        
     }
 
     

        } else {
            rTag.tag = tag
        }
        
        tags[tagsTypeControl.selectedSegmentIndex][tag] = rTag
    }
    

    
    private func removeTag(tag: String) {
        let rTag: RecordingTag = tags[tagsTypeControl.selectedSegmentIndex][tag]!
        tags[tagsTypeControl.selectedSegmentIndex].removeValueForKey(tag)
        //managedObjectContext.delete(rTag)
    }
    
    private func addTag(tag: String) {
