             return UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
         }
     }
-    
-    
+
     func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
         collectionView.deselectItemAtIndexPath(indexPath, animated: true)
         
         performSegueWithIdentifier("showProfile", sender: indexPath)
     }
-    
 }
 
-

    }
    
    func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -> UIEdgeInsets {
        switch userMode! {
        case .Normal:
            return UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
            

    
    let CardUserIdentifier = "DiscoverCardUserCell"
    
    var userMode: DiscoverUserMode = .Card {
        didSet {
            layout.userMode = userMode
            
            switch userMode {

            case .Card:
                view.backgroundColor = UIColor.yepBackgroundColor()
                modeButtonItem.image = UIImage(named: "icon_list")

            case .Normal:
                view.backgroundColor = UIColor.whiteColor()
                modeButtonItem.image = UIImage(named: "icon_minicard")
