         }
         dismiss()
     }
-
-}
+    
+}

        NSNotificationCenter.defaultCenter().addObserver(self, selector: "onOrientationChange:", name: UIDeviceOrientationDidChangeNotification, object: nil)
    }
    
    func onOrientationChange(notification: NSNotification){

        kButtonWidth = view.frame.width * 0.8

        let menuHeight = CGFloat(buttons.count + 2) * kButtonInterval + CGFloat(buttons.count) * kButtonHeight
        menuView.frame = CGRect(
            x: 0,

    required public init(coder aDecoder: NSCoder) {
        fatalError("NSCoding not supported")
    }
    
    required public init() {
        super.init(nibName:nil, bundle:nil)
        view.frame            = UIScreen.mainScreen().bounds
