   goto: (i) ->
     @log "goto(#{i})"
     @current = i
-    $("##{@options.id} .pages .page").hide()
-    $("##{@options.id} .pages .page:nth-child(#{i+1})").show()
-    $('nav.controls').hide()
+    @show(i)
     @disable_panels()
     @activate(i)
     @load(i) unless @already_loaded(i)
     @enable_panel(i) if @already_loaded(i)
+
+  show: (i) ->
+    $("##{@options.id} .pages .page").hide()
+    $("##{@options.id} .pages .page:nth-child(#{i+1})").show()
 
   drag_drop: ->
     base_url = @options.base_url

      $("#asset-results ul").amplePanels('append', li)
      @load_img(link, el.sizes.tn)
    @active_panel = $("#asset-results ul")
    

  build: (el) ->
    ref = this

      @active_panel = el
      @options.pages[i][''] = $(el).attr('id',"#{@options.pages[i]['id']}-panel")
      $(el).parent().addClass('panels')
      @controls()
      $(el).amplePanels(@options.pages_options)
        .bind 'slide_horizontal', (e,d,dir) ->
          ref.load(i) if dir == 'next'

  disable_panels: ->
    @log "disable_panels()"
    ref = this
    @controls(false)
    $.each @options.pages, (i,el) ->
      $(ref.options.pages[i]['panel_selector']).amplePanels('disable') if ref.options.pages[i]['panel_selector']

