use modal.js to show dialog whether to export