split run method in import_certificate_dialog.rb