         cancellationSwitch.on = false
         localSwitch.on = false
         skippingSwitch.on = false
+        delayFlag = false
+        localFlag = false
+        cancellationFlag = false
+        skippingFlag = false
     }
     
     

    
    @IBAction func cancellationSwitchChange(switchState: UISwitch) {
        if switchState.on {
            delayFlag = true;
        } else {
            delayFlag = false;
        }
    }
    
    @IBAction func skippingSwitchChange(switchState: UISwitch) {
        if switchState.on {
            delayFlag = true;
        } else {
            delayFlag = false;
        }
    }
    
    func validate()-> Bool{
        if(delayFlag && localFlag && skippingFlag && cancellationFlag)
        {
            return false
        }

        
        if let brand = self.brand {
            self.title = brand.name
            //self.iconLabel.text = "train" //brand.iconText
        }
    }
    
