             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)
     }
-    
 }
 
-


extension DiscoverViewController: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
    
    
    func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return discoveredUsers.count
    }
    
    func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
//        let discoveredUser = discoveredUsers[indexPath.row]
        
        switch userMode! {
        case .Normal:
            let cell = collectionView.dequeueReusableCellWithReuseIdentifier(NormalUserIdentifier, forIndexPath: indexPath) as! DiscoverNormalUserCell
            
//            cell.configureWithDiscoveredUser(discoveredUser, collectionView: collectionView, indexPath: indexPath)
            return cell
            
        case .Card:
           let cell = collectionView.dequeueReusableCellWithReuseIdentifier(CardUserIdentifier, forIndexPath: indexPath) as! DiscoverCardUserCell
//            cell.configureWithDiscoveredUser(discoveredUser, collectionView: collectionView, indexPath: indexPath)
            return cell
        }
    }

    
    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")
