         $(that).parent().parent().html _.template(arr[5], { item: stat })
         statistics[index] = stat
         $('#statistics tr:last').html _.template(arr[9], { data: statistics })
-        #if $('#queque_detail').is(":visible")
-        #data_bind_detail name
     })
   $('#statistics .btn_clear').live 'click', (event)-> 
     event.stopPropagation()  
     name = $(@).parent().parent().find('td:first').html()
-    console.log name
     that = @
     $.ajax({
       type: 'POST'
       url: '/api/queues/' + name + '/clear'
       success: (stat) ->
         index = $(that).parent().parent().index()
-        console.log index
         $(that).parent().parent().html _.template(arr[5], { item: stat })
         statistics[index] = stat
         $('#statistics tr:last').html _.template(arr[9], { data: statistics })
-        #if $('#queque_detail').is(":visible")
-        #data_bind_detail name
     })
 
 data_bind_detail = (name)->

    event.stopPropagation()  
    name = $(@).parent().parent().find('td:first').html()
    that = @
    console.log name
    $.ajax({
      type: 'POST'
      url: '/api/queues/' + name + '/reschedule'

    type: 'GET'
    url: '/api/queues/' + name + '/statistics'
    success: (stat) ->
      $('#statistic').html _.template($('#tb_statistic_template').html(), { statistic: stat })
  })
  $.ajax({
