     }
     
     
+    /// Helper function to draw a bottom border on the top header for 
+    /// beautiful effect
     func getBottomBorder() -> CALayer {
         let border = CALayer();
         

        return header
    }
    
    override func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
        let footer = UIView(frame: CGRectMake(0, 0, tableView.frame.size.width, 40));
        footer.backgroundColor = UIColor.colorWithHex("#EEEEEE")

        config.setBool(sender.on, forKey: "showPassword")
    }
    
    /// Store password and notify main view when done is pressed
    @IBAction func handleDonePressed(sender: AnyObject) {
        config.setObject(passwordField.text, forKey: "password")
        
        self.passwordField.resignFirstResponder()
        self.dismissViewControllerAnimated(true, completion: nil)
        
        nc.postNotificationName("settingsUpdated", object: config)
    }
    
    
    /// Post notification to main view when cancel is pressed
    @IBAction func handleCancelPressed(sender: AnyObject) {
        self.dismissViewControllerAnimated(true, completion: nil)
        self.passwordField.resignFirstResponder()
        
        nc.postNotificationName("settingsNotUpdated", object: config)
    }
    
    
    /// Iterating over the sections in the table view to update the 
    /// appearance by changing font and case to make it look more like the
