           fetchingPlaylist = Swabcast.request("entities:playlist")
           playlistLayout = new View.Layout()
           $.when(fetchingPlaylist).done (tracks) ->
-            console.log(tracks)
             self = this
             emptyView = undefined
 

          mainPlaylistLayout = new View.ManagePlaylistLayout()

          mainPlaylistLayout.on "show", ->
            console.log(localStorage)
            fetchingPlaylist = Swabcast.request("entities:playlist")

            $.when(fetchingPlaylist).done (episodes) ->

                    newTrack.save()
                    Swabcast.commands.execute "player:setepisode", newTrack.get("id")  if tracks.at(0) is newTrack
                    #update the playlist in mainview
                    # Playlist.trigger "playlist:newepisode", newTrack
                    tracks.nowPlaying = newTrack  unless tracks.nowPlaying
                else
                  if apiResponse == "fail"
