 //            cell.onSwitch.hidden = true
             cell.onSwitch.on = switchStates[indexPath] ?? false
             
-            
+            //Almost implemented!
             if cell.onSwitch!.on {
 //                cell.accessoryView = UIImageView(image: UIImage(named: "SortSelected"))
                 cell.accessoryType = .Checkmark

    
    // radiusCelllDelegate
    func radiusCell(radiusCell: RadiusCell, valueUpdated: Bool) {
        println("radius cell!")
        matchType = tableView.indexPathForCell(radiusCell)!.row
    }
    

            return cell
            
        case sortCellKey:
            
            let cell = tableView.dequeueReusableCellWithIdentifier(cellTypes["radius"]!, forIndexPath: indexPath) as! RadiusCell
            
