             player?.removeObserver(playerObserver)
         }
         playerObserver = nil
+        playlistObserver?.dispose()
+        playlistObserver = nil
     }
 
     func updateNavbar() {

        playerObserver = TrackTableViewPlayerObserver(viewController: self)
        player?.addObserver(playerObserver)
        updateSelection()
    }

    func isPlaylistPlaying() -> Bool {

            (action, indexPath) in
            Logger.sendUIActionEvent(self, action: "removeTrack", label: "\(indexPath.item)")
            self.playlist.removeTrackAtIndex(UInt(indexPath.item))
        }

        remove.backgroundColor = UIColor.red
