         menu.addItem(NSMenuItem(title: "Quit VolumeRelay", action: Selector("terminate:"), keyEquivalent: "q"))
         
         statusBarItem.menu = menu
+        
+        // set up notifications
+        increaseNotification.title = "Increasing Volume"
+        increaseNotification.informativeText = "Turning up the volume for audio device"
+        increaseNotification.soundName = nil
+        increaseNotification.contentImage = NSImage(named: "VolumeUpImage")
+        
+        decreaseNotification.title = "Decreasing Volume"
+        decreaseNotification.informativeText = "Turning down the volume for audio device"
+        decreaseNotification.soundName = nil
+        decreaseNotification.contentImage = NSImage(named: "VolumeDownImage")
         
         // volume key listener
         volumeTap = SPMediaKeyTap(delegate: self)

    let statusBarItem = NSStatusBar.systemStatusBar().statusItemWithLength(NSSquareStatusItemLength)
    var volumeTap: SPMediaKeyTap!
    
    var volume_up : String = "http://192.168.178.20/elropi.py?remote=yamaha&command=VOLUME_%2B&amount=10"
    var volume_down : String = "http://192.168.178.20/elropi.py?remote=yamaha&command=VOLUME_-&amount=10"
    
    var airplayDeviceName: String = "Pioneer N-50"
    
    var increaseNotification: NSUserNotification = NSUserNotification()
    var decreaseNotification: NSUserNotification = NSUserNotification()

    
    func setupVolumeKeyTap() {
        print(getAudioOutputDeviceName(getDefaultAudioOutputDevice()) + " (" + getNameOfActiveDataSourceOfAudioDevice(getDefaultAudioOutputDevice()) + ")")
        if let index = airplayDeviceNames.indexOf(getNameOfActiveDataSourceOfAudioDevice(getDefaultAudioOutputDevice())) {
            increaseNotification.informativeText = "Turning up the volume for " + airplayDeviceNames[index]
            decreaseNotification.informativeText = "Turning down the volume for " + airplayDeviceNames[index]
            volumeTap.startWatchingMediaKeys()
            if let button = statusBarItem.button {
                button.image = NSImage(named: "StatusBarButtonImageEnabled")
