                  </div>
                    `;
                    
                    // Since we're starting with tree view, load tree data immediately
                    loadModalTreeData();
                }
            })
            .catch(error => {
                content.innerHTML = `
                    <div class="rc-alert rc-alert-error">
                        <i class="bi bi-exclamation-triangle"></i>
                        Error loading available devices: ${error.message}
               