 		return nil
 	}
 
-	func startTimer() {
-		timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: #selector(self.update), userInfo: nil, repeats: true)
+	func startRefreshTimer() {
+		refreshTimer = NSTimer.scheduledTimerWithTimeInterval(3, target: self, selector: #selector(AppDelegate.update), userInfo: nil, repeats: true)
+        NSRunLoop.mainRunLoop().addTimer(refreshTimer, forMode: NSRunLoopCommonModes)
 	}
 	
 	func update() {

		statusItem.menu = statusMenu
		//statusItem.title = "test"
		
		startTimer()
	}

	func applicationWillTerminate(aNotification: NSNotification) {
		timer.invalidate()
	}

	@IBAction func menuClicked(sender: NSMenuItem) {

	
	let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(NSVariableStatusItemLength)
	
	var refreshTimer: NSTimer!

	func applicationDidFinishLaunching(aNotification: NSNotification) {
		//let icon = NSImage(named: "statusIcon")
