       e.preventDefault()
       @el.find('.js-dataDownloadBackendSelector').parent().removeClass('active')
       $(e.target).parent().addClass('active')
-      @profileSelected = $(e.target).data('profile')
-      @backendSelected = $(e.target).data('backend')
+      @profileSelectedId = $(e.target).data('profile-id')
+      @backendSelected   = $(e.target).data('backend')
 
     table = (tickets, count) =>
       url = '#ticket/zoom/'

  render: ->

    reports = []
    $('.js-backendSelector:checked').each( (index, element) ->
      if $(element).hasClass('download')
        value = $(element).val()
        reports.push value
    )

    profiles = []
    for key, value of @params.profileSelected
      profiles.push App.ReportProfile.find(key)
    console.log('reports', reports, 'profiles', profiles, @config.metric, @params.metric, @config.metric[@params.metric])
    @html App.view('report/download_header')(
      reports:  reports
      profiles: profiles
      metric:   @config.metric[@params.metric]
    )

    @profileSelected = ''
    @backendSelected  = ''
    active = false
    @el.find('.js-dataDownloadBackendSelector').each( (index, element) ->
      if $(element).parent().hasClass('active')

    App.Event.trigger( 'ui:report:rerender' )

App.Config.set( 'report', Index, 'Routes' )
App.Config.set( 'Reporting', { prio: 8000, parent: '', name: 'Reporing', translate: true, target: '#report', icon: 'report', role: ['Report'] }, 'NavBarRight' )