 }
 
 func getDesktopWindowNumber() -> Int {
-    var desktopWindowNumber = 0;
+    var desktopWindowNumber = 0
     let options = CGWindowListOption(arrayLiteral: CGWindowListOption.OptionOnScreenOnly)
     let infoList = CGWindowListCopyWindowInfo(options, CGWindowID(0))
 

    @IBOutlet weak var intervalSlider: NSSlider!
    @IBOutlet weak var imageViewInAboutPanel: NSImageView!

    var enabled : Bool = true;
    var switchInterval : Double = 0.0;
    var prevEventTimestamp : NSTimeInterval = 0;
    let defaults = NSUserDefaults.standardUserDefaults()
    let statusItem: NSStatusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)


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

        let desktopWindowNumber = getDesktopWindowNumber()

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

