converting disabled button into error message for imports