     }
     
     override func tableView(tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
+        let section = Section(rawValue: section)!
+        
         switch section {
-        case 0:
+        case .Installation:
             return "INSTALLATION"
-        case 1:
+        case .Settings:
             return "SETTINGS"
-        default:
-            return nil
         }
     }
     
     override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
-        if(indexPath.section == 0 && indexPath.row == 0) {
+        let section = Section(rawValue: indexPath.section)!
+        
+        switch (section) {
+        case (.Installation):
             let title = "ENABLE VIA SETTINGS"
             var message = "Safari Content Blockers must be enabled via the Settings app"
             message += "\n\nSettings → Safari → Content Blockers"

    }

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 2
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        switch section {
        case 0:
            return 1
        case 1:
            return 1
        default:
            return 0
        }
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        switch (indexPath.section, indexPath.row) {
        case (0, 0):
            let cell = tableView.dequeueReusableCellWithIdentifier("installation", forIndexPath: indexPath)
            return cell
        case (1, 0):
            let cell = tableView.dequeueReusableCellWithIdentifier("swabSetting", forIndexPath: indexPath)
            
            let switchControl = UISwitch(frame: CGRectZero)

class SwabSettings: UITableViewController {
    
    @IBOutlet weak var headerText: UITextView?
    
    private enum Section: Int {
        case Installation
        case Settings
        
        static let allSections = [Installation, Settings]
    }

    override func viewDidLoad() {
        super.viewDidLoad()
