added exporting of filtered tables