     window.lupaEntities = files.reduce (res,f) ->
         res.concat(f.metadata)
     ,[]
+    if dashboard
+        dashboard.setFiles(files, addLabelDecoration) # TODO remove addLabelDecoration from here. This is hack
 
     atom.notifications.addSuccess("#{files && files.length} files have been indexed.")
     document.getElementById('lupa-index-project-wrapper').style.display = 'none';

            onMouseOut: handleDestroyDecorations,
            entities: entitiesAtPos
        }), statusBar)
        #statusBar.innerHTML = "<div style='padding: 4px; color: #ffa'>#{entitiesAtPos.join(', ')}</div>"




    if !filename
        return


    update = (f)->

        refreshStructure plugin, f, (metadata) ->
            editor.metadata = metadata
