         }
     }
 
-    var isDirty = false {
+    private 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()
 

        })
    }

    func updateFromButton() {
        fromButton.setTitle(NSLocalizedString("From", comment: "") + " " + doNotDisturbPeriod.localFromString, forState: .Normal)
    }

    func updateToButton() {
        toButton.setTitle(NSLocalizedString("To", comment: "") + " " + doNotDisturbPeriod.localToString, forState: .Normal)
    }

    @IBAction func activeFrom() {
        activeTime = .From
    }

    @IBAction func activeTo() {
        activeTime = .To
    }
}


    // MARK: - Actions

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

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