 
     func addButtonMainView(xPosition: CGFloat, width: CGFloat, alpha: CGFloat, text: NSString, viewController: NSViewController) -> NSButton {
         var button = NSButton(frame: NSMakeRect(xPosition, Constant.WindowLayout.MinimumPaddingButton/1.5, width, Constant.WindowLayout.HeightOfButton))
-        button = addButtonConfiguration(button)
         button.image = NSImage(named: "background-\(text)-button")
-        button.attributedTitle = TextAttributter.attributedStringForButtons(text.uppercaseString, font: "AvenirNext-DemiBold", color: NSColor.whiteColor())
+        button = addButtonConfiguration(button, viewController: viewController, text: text.uppercaseString, color: NSColor.whiteColor())
         button.alphaValue = alpha
-        let selectorString = "on\(text.capitalizedString)ButtonPressed"
-        button.target = viewController
-        button.action = NSSelectorFromString(selectorString)
-
-        viewController.view.addSubview(button)
+        button.action = NSSelectorFromString("on\(text.capitalizedString)ButtonPressed")
 
         return button
     }


    func breakLayoutCloseButton(viewController: NSViewController) -> NSButton {
        var button = NSButton(frame: NSMakeRect(17, viewController.view.frame.height - 34, 17, 17))
        button = addButtonConfiguration(button, viewController: viewController, text: "")
        button.image = NSImage(named: "close-break-button")
        button.action = "onCloseButtonPressed"



    func breakLayoutStartBreakButton(viewController: NSViewController, sideLabel: NSTextField) -> NSButton {
        var button = NSButton(frame: NSMakeRect((viewController.view.frame.width / 2) + 25, sideLabel.frame.origin.y - 125, 265, 55))
        button.image = NSImage(named: "background-break-button")
        button = addButtonConfiguration(button, viewController: viewController, text: "START BREAK", color: NSColor(calibratedHue:0, saturation:0, brightness:0.22, alpha:1))
        button.action = "onStartBreakButtonPressed"

        return button
