       li = $('<li class="file"></li>').append(link)
       $("#asset-results ul").amplePanels('append', li)
       @load_img(link, el.sizes.tn)
+    @active_panel = $("#asset-results ul")
+    
 
   build: (el) ->
     ref = this

    @keys_enabled = true
    ref = this
    default_options = 
      debug: false
      expanded: false
      id: "ample-assets"
      handle_text: 'Assets'

    down = 40
    escape = 27
    $(document).keydown (e) =>
      # return unless @keys_enabled or @active_panel
      switch e.keyCode
        when previous
          $(@active_panel).amplePanels('previous')
