finalize exporting XLS