           else
             label.append($('<span class="badge">'))
           
-          label.append($.gricer.labelFor line[0])
-        
+          label_text = $.gricer.labelFor(line[0])
+          label.attr('data-label', label_text)
+          label.append(label_text)
+                 
           row = $('<tr>')
           .append( label_row )
           .append( $('<td class="number">').append(line[1]) )

  updateBreadcrumb: (elem) ->
    $.gricer.last_called = $(elem)
    
    if $(elem).parents('#gricer-menu').length > 0
      $('#gricer-header .path').html( $(elem).clone() )
    else if $(elem).parents('#gricer-header .path').length > 0
      $(elem).nextAll().remove()
    else if $(elem).parent('.type-selector').length > 0
      link = $('#gricer-header .path a:last').html()
      $('#gricer-header .path a:last').remove()
      $('#gricer-header .path').append( $(elem).clone().html(link))
    else
      $('#gricer-header .path').append( $(elem).clone() )
  
$('a[data-gricer-process]').live 'click', ->
  $.gricer.loading()

          
        label = label_row = $('<td>')
        if data.detail_uri
          label = $('<a data-gricer-process="true"></a>').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(key)))
          label_row.append(label)
      
        if graph
