               if attribute.relation && App[attribute.relation]
                 record = App.Collection.find( attribute.relation, object[rowWithoutId] )
                 object[row.name]['name'] = record.name
- 
-#    @log 'table', 'header', header, 'overview', data_types, 'objects', objects
+
+    @log 'table', 'header', header, 'overview', dataTypesForCols, 'objects', objects
     table = App.view('generic/table')(
       header:   header,
-      overview: data_types,
+      overview: dataTypesForCols,
       objects:  objects,
       checkbox: data.checkbox,
     )


    # convert to jquery object
    table = $(table)
    
    # enable checkbox bulk selection
    if data.checkbox
      table.delegate('[name="bulk_all"]', 'click', (e) ->
        if $(e.target).attr('checked')
          $(e.target).parents().find('[name="bulk"]').attr('checked', true);
        else
          $(e.target).parents().find('[name="bulk"]').attr('checked', false);       
      )

    return table

  formValidate: (data) ->
    App.ControllerForm.validate(data)

  ###

    table = @table(
      header:   ['Host', 'User', 'Adapter', 'Active'],
      overview: ['host', 'user', 'adapter', 'active'],
      model:    App.Channel,
      objects:  data,
    )

    table = @table(
      overview_extended: [
        { name: 'number',                 link: true },
        { name: 'title',                  link: true },
        { name: 'customer',               class: 'user-data', data: { id: true } },
        { name: 'ticket_state',           translate: true },
        { name: 'ticket_priority',        translate: true },
        { name: 'group' },
        { name: 'owner',                  class: 'user-data', data: { id: true } },
        { name: 'created_at',             callback: @frontendTime },
        { name: 'last_contact',           callback: @frontendTime },
        { name: 'last_contact_agent',     callback: @frontendTime },
        { name: 'last_contact_customer',  callback: @frontendTime },
        { name: 'first_response',         callback: @frontendTime },
        { name: 'close_time',             callback: @frontendTime },
      ],
      model:    App.Ticket,
      objects:  tickets,
    )

  ###

  table: (data) ->
    overview   = data.overview || data.model.configure_overview || []
    attributes = data.attributes || data.model.configure_attributes
    header     = data.header

    # define normal header
    if !header
      header = []
      for row in overview
        if attributes
          for attribute in attributes
            if row is attribute.name
              header.push( attribute.display )
            else
              rowWithoutId = row + '_id'
              if rowWithoutId is attribute.name
                header.push( attribute.display )

    dataTypesForCols = []
    for row in overview
      dataTypesForCols.push {
        name: row,
        link: true,
      }

    # extended table format
    if data.overview_extended
      if !header
        header = []
        for row in data.overview_extended
          for attribute in attributes
            if row.name is attribute.name
              header.push( attribute.display )
            else
              rowWithoutId = row.name + '_id'
              if rowWithoutId is attribute.name
                header.push( attribute.display )

      dataTypesForCols = data.overview_extended

    # generate content data
    objects = _.clone( data.objects )
    for object in objects

      # check if info for each col. is already there
      for row in dataTypesForCols

        # check if info is a object
        if typeof object[row.name] is 'object'
          if !object[row.name]
            object[row.name] = {
