       errorAlert.style.display = 'none';
                
                if (xhr.status === 200) {
                    try {
                        const response = JSON.parse(xhr.responseText);
                        
                        if (response.status === "ok") {
                            // Show success message
                            successAlert.style.display = 'block';
                            showToast("Agent imported successfully!", "success");
                            
    