             return playlist
         }
     }
+
+    var currentTrack: Track? {
+        get {
+            return playlist?.tracks[currentIndex]
+        }
+    }
     
     @IBOutlet weak var mainViewContainer: UIView!
     var playButton:     UIButton!

                }
            })
        } else {
            self.miniPlayerView.titleLabel.text    = "..."
            self.miniPlayerView.durationLabel.text = "--:--"
            self.miniPlayerView.thumbImgView.sd_setImageWithURL(nil)
        }
    }

    }
    
    func updateViews() {
        if let track = currentTrack {
            let playingInfoCenter: AnyClass? = NSClassFromString("MPNowPlayingInfoCenter")
            if let center: AnyClass = playingInfoCenter {
                var info:[String:AnyObject]                           = [:]
                info[MPMediaItemPropertyTitle]                        = track.title
                MPNowPlayingInfoCenter.defaultCenter().nowPlayingInfo = info
            }
            self.miniPlayerView.titleLabel.text    = track.title
