             if let cell = cell as? SubmitWorkoutTableViewCell {
                 cell.switchChangedCallback = { isOn in
                     self.resultWorkoutData.totalDistance = isOn ? self.workoutData.totalDistance : nil
+                    self.defaults.setBool(isOn, forKey: self.kSwitchPrefTotalDistance)
+                }
+                if let switchState = defaults.valueForKey(self.kSwitchPrefTotalDistance) as? Bool {
+                    cell.sendDataSwitch.on = switchState
                 }
             }
         case 4:

            if let cell = cell as? SubmitWorkoutTableViewCell {
                cell.switchChangedCallback = { isOn in
                    self.resultWorkoutData.totalCalories = isOn ? self.workoutData.totalCalories : nil
                }
            }
        case 3:

            if let cell = cell as? SubmitWorkoutTableViewCell {
                cell.switchChangedCallback = { isOn in
                    self.resultWorkoutData.averageHeartRate = isOn ? self.workoutData.averageHeartRate : nil
                    self.defaults.setBool(isOn, forKey: self.kSwitchPrefAverageHeartRate)
                }
                if let switchState = defaults.valueForKey(self.kSwitchPrefAverageHeartRate) as? Bool {
                    cell.sendDataSwitch.on = switchState
                }
            }
        case 5:
