         })
     }
 
-    func updateFromButton() {
+    private func updateFromButton() {
         fromButton.setTitle(NSLocalizedString("From", comment: "") + " " + doNotDisturbPeriod.localFromString, forState: .Normal)
     }
 
-    func updateToButton() {
+    private func updateToButton() {
         toButton.setTitle(NSLocalizedString("To", comment: "") + " " + doNotDisturbPeriod.localToString, forState: .Normal)
     }
 
-    @IBAction func activeFrom() {
+    @IBAction private func activeFrom() {
         activeTime = .From
     }
 
-    @IBAction func activeTo() {
+    @IBAction private func activeTo() {
         activeTime = .To
     }
 }

        }
    }

    var isDirty = false {
        didSet {
            updateDoNotDisturb(success: { [weak self] in
                if let strongSelf = self {
                    strongSelf.dirtyAction?(strongSelf.doNotDisturbPeriod)
                }

            })
        }
    }
    var dirtyAction: (DoNotDisturbPeriod -> Void)?
    
    override func viewDidLoad() {
        super.viewDidLoad()



    // MARK: - Actions

    private func updateDoNotDisturb(success success: () -> Void) {

        let info: JSONDictionary = [
            "mute_started_at_string": doNotDisturbPeriod.serverFromString,
