Fixed import and export tools not responding correctly to Cancel button