Put export and import dialogs in template blocks