         });
         _win.reload.addEventListener(MouseEvent.CLICK, F.callback(reloadNow));
         _win.export.addEventListener(MouseEvent.CLICK, function (..._) :void {
-            for each (var status :DocStatus in _librariesGrid.selectedItems) {
+            for each (var status :DocStatus in _flashDocsGrid.selectedItems) {
                 exportFlashDocument(status);
             }
         });
         _win.preview.addEventListener(MouseEvent.CLICK, function (..._) :void {
-            showPreviewWindow(_librariesGrid.selectedItem.lib);
+            showPreviewWindow(_flashDocsGrid.selectedItem.lib);
         });
         _importChooser = new DirChooser(null, _win.importRoot, _win.browseImport);
         _importChooser.changed.add(setImport);

        }

        var curSelection :DocStatus = null;
        _librariesGrid.addEventListener(GridSelectionEvent.SELECTION_CHANGE, function (..._) :void {
            log.info("Changed", "selected", _librariesGrid.selectedIndices);
            updatePreviewAndExport();

            if (curSelection != null) {
                curSelection.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE, updatePreviewAndExport);
            }
            var newSelection :DocStatus = _librariesGrid.selectedItem as DocStatus;
            if (newSelection != null) {
                newSelection.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, updatePreviewAndExport);
            }

        }

        const status :DocStatus = new DocStatus(name, _rootLen, Ternary.UNKNOWN, Ternary.UNKNOWN, null);
        _flashDocsGrid.dataProvider.addItem(status);

        load.succeeded.add(function (lib :XflLibrary) :void {
            status.lib = lib;
