                   </li>
                 """)
               )
+              $("a[href=##{id}-uploaded]").click()
             #return
             error: (e, data) ->
               $error = $("<div class='error' style='display:none'>500 Internal Server Error</div>")

          id = this.href.split('#')[1]
          dragndrop = !!FileReader and Modernizr.draganddrop
          record = $this.data('prefix') + '/+record/create?type=' + id
          console.log(record)
          $uploader = getUploader(
            id
            $this.data('url')

          $(document.getElementById(id + '-input')).fileupload({
            dataType: 'json'
            done: (e, data) ->
              $uploaded = $(document.getElementById(id + '-uploaded'))
              if $uploaded.length is 0
                $uploaded = $("<div id='#{id}-uploaded' class='tab-contents'><ul class='files'></ul></div>")
                $tabs = $(document.getElementById(id + '-tabs'))
                $tabs.append($uploaded)
                easytabs = $tabs.data('easytabs')
                $tablist = $tabs.find('ul.etabs')
                $newtab = $("<li class='tab'><a href='##{id}-uploaded'>Uploaded</a></li>")
                $tablist.append($newtab)
                easytabs.tabs.removeClass(easytabs.settings.tabActiveClass)
                easytabs.panels.removeClass(easytabs.settings.panelActiveClass)
                $tablist.find("[data-href]").each(
                  ->
                    $this = $(this)
                    $this.attr('href', $this.data('href')).removeAttr('data-href')
                  #return
                )
                easytabs.init()
              #endif
              $files = $uploaded.find('ul.files')
              $.each(data.result.files, (index, file) ->
                $files.append("""
                  <li>
