         let value = sender.intValue
         self.enabled = (value > 0)
         self.intervalSlider.enabled = (value > 0)
-        print(value);
+        print(value)
     }
 
     @IBAction func infoButtonPressed(sender: AnyObject) {
-//        var frameRelativeToWindow = self.statusMenuFirst.view!.convertRect(self.statusMenuFirst.view!.bounds, toView: nil)
-//        var pointRelativeToScreen = self.statusMenuFirst.view!.window!.convertRectToScreen(frameRelativeToWindow).origin.x;
-//        NSLog("*** %d", pointRelativeToScreen)
-
+        let frameRelativeToWindow = self.statusMenuFirst.view!.convertRect(self.statusMenuFirst.view!.bounds, toView: nil)
+        let xRelativeToScreen = self.statusMenuFirst.view!.window!.convertRectToScreen(frameRelativeToWindow).origin.x
         let mainScreenHeight = NSScreen.mainScreen()!.frame.size.height
-        let mainScreenWidth = NSScreen.mainScreen()!.frame.size.width
         let infoWindowWidth = window.frame.size.width
         var frame = window.frame
-        frame.origin = CGPoint(x: mainScreenWidth / 2 - infoWindowWidth / 2, y: mainScreenHeight)
+        frame.origin = CGPoint(x: xRelativeToScreen - infoWindowWidth - 10, y: mainScreenHeight)
         NSApp.activateIgnoringOtherApps(true)
         window.setFrame(frame, display: true)
         window.makeKeyAndOrderFront(self)

            defaults.setDouble(switchInterval, forKey: udkSwitchInterval)
        }
        intervalSlider.doubleValue = switchInterval
        print(switchInterval);

        let desktopWindowNumber = getDesktopWindowNumber();

        NSEvent.addGlobalMonitorForEventsMatchingMask(.ScrollWheelMask, handler: { event in



    @IBAction func sliderChanged(sender: AnyObject) {
        let value = sender.doubleValue
        print(value)
        switchInterval = value
        self.defaults.setDouble(switchInterval, forKey: udkSwitchInterval)
    }

