      const dialog = document.createElement('div');
        dialog.className = 'rename-dialog';
        dialog.innerHTML = `
                <h3>Rename Mind Map</h3>
                <input type="text" value="${escapeHtml(
            mindmap.topic
        )}" id="rename-input">
                <div class="dialog-buttons">
                    <button class="dialog-button cancel" onclick="closeRenameDialog()">Cancel</button>
                    <button class="dialog-button confirm" onclick="confirmRename(${id