             statusItem.menu = nil
         } else {
             if statusItem.image == NSImage(named: "StatusBarButtonImage") {
+                self.appIsLaunched()
                 statusItem.image = NSImage(named: "StatusBarButtonImageActive")
             } else {
                 statusItem.image = NSImage(named: "StatusBarButtonImage")

            if let processName:String = note.userInfo?["NSApplicationName"] as? String {
                if let processId = note.userInfo?["NSApplicationProcessIdentifier"] as? Int {
                    switch processName {
                    case "iTunes":
                        self.terminateProcessWith(processId,processName)
                    default:break
                    }
                }
            }

            button.sendAction(on: [.leftMouseUp, .rightMouseUp])
        }
        
        self.appIsLaunched()
        self.createListener()
    }
    
    func createListener() {
        let workspaceNotificationCenter = NSWorkspace.shared().notificationCenter
        workspaceNotificationCenter.addObserver(self, selector: #selector(self.appWillLaunch(note:)), name: .NSWorkspaceWillLaunchApplication, object: nil)
    }
    
    func appIsLaunched() {
        let apps = NSWorkspace.shared().runningApplications
        for currentApp in apps.enumerated() {
            let runningApp = apps[currentApp.offset]
            
            if(runningApp.activationPolicy == .regular) {
                if(runningApp.localizedName == "iTunes") {
                    self.terminateProcessWith(Int(runningApp.processIdentifier), runningApp.localizedName!)
                }
            }
        }
    }
    
    func appWillLaunch(note:Notification) {
