   override func viewWillAppear(_ animated: Bool) {
     super.viewWillAppear(animated)
 
-    // before the view appears, update the initial enabled/disabled state of dependent switches
-    updateSwitchDetailAvailability(available: self.keyboardState!.isEnabled)
+    // before the view appears, update the initial enabled/disabled state of dictionary switches
+    updateDictionaryAvailability(keyboardEnabled: self.keyboardState!.isEnabled)
   }
   
 

    }
  }

  func updateSwitchDetailAvailability(available: Bool) {
    let predictionIndex = IndexPath(row: predictionsRow, section: languageSettingsSection)
    self.updateSwitchCell(index: predictionIndex, available: available)
    let correctionIndex = IndexPath(row: correctionsRow, section: languageSettingsSection)
    self.updateSwitchCell(index: correctionIndex, available: available)
    
    for rowNumber in 0...max(0, lexicalModels.count-1) {
      let dictionaryIndex = IndexPath(row: rowNumber, section: dictionarySection)
      self.updateSwitchCell(index: dictionaryIndex, available: available)
    }
  }
}

      self.settingsRepo.saveKeyboardState(keyboardId: self.keyboardState!.keyboardId, enabled: enable)

      // update the enabled/disabled state of dependent switches
      self.updateDictionaryAvailability(keyboardEnabled: enable)
      self.delegate?.refreshCheckmark()
    }
    switchCell.configure(label: (self.keyboardState?.name)!, enabled: self.keyboardState!.isEnabled,
