 
   displayScreen: (type, html) ->
     switch type
-      when "browse"
-        @showIcons ".browseHeader, .searchWrap"
+      when 'browse'
+        @showIcons '.browseHeader, .searchWrap'
         @updateScreen null,null,"#browse",null,html
-      when "artistList"
-        @showIcons ".browseWrap, h1, .searchWrap"
-        @updateScreen "#browse",null,"#artistList",@category,html
-      when "albumList"
-        @showIcons ".browseWrap, .backArrow, h1, .play, .manage, .searchWrap, .drag"
-        @updateScreen "#artistList",@category,"#albumList",@artist,html
+      when 'artistList'
+        @showIcons '.backArrow, h1, .searchWrap'
+        @updateScreen "browse",'browse',"#artistList",@category,html
+      when 'albumList'
+        @showIcons '.backArrow, h1, .play, .manage, .searchWrap, .drag'
+        @updateScreen "artistList",@category,"#albumList",@artist,html
       when 'searchResults'
+        @showIcons '.browseWrap, .searchFieldWrap, .drag'
         @updateScreen null,null,'#searchResults',null,html
       when 'slideshow'
-        @showIcons '.counter,.play'
-        @updateScreen null,null,'#slideshow',null,html
+        @showIcons '.backArrow, h1, .counter, .play, .prev, .info, .tag, .add, .next, .edit, .cancel'
+        @updateScreen 'albumList',@artist,'#slideshow','slideshow',html
+        @showSlide 0
 
   updateScreen: (previousType, previousName, currentType, currentName, currentHtml) ->
     @hideAllViews()

  ## TOP ICONS
    
  '.browseWrap click': (el) ->
    @displayScreen "browse",null

  '.backArrow click': (el) ->
    @displayScreen el.attr("name"),null

  
  '.play click': ->
    imageIds = @imageCookie.getAll()
    $(".counter").text("1/"+imageIds.length)
    @displayScreen 'slideshow', @view('slideshow', { imageIds: imageIds })
    
  ## [ footer icons ]
  '.next click': ->
    currentIndex = $("#slideshow img:visible").index()
    @showSlide currentIndex+1

  '.prev click': ->
    currentIndex = $("#slideshow img:visible").index()
    @showSlide currentIndex+1
    
  showSlide: (index) ->
    $("#slideshow img").hide()
    $("#slideshow img:eq(#{index})").show()
    totalCount = $("#slideshow img").length
    $(".counter").text "#{index+1}/#{totalCount}"
    
  #VIEWS
    
