         
                <div class="mindmap-actions">
                    <button class="action-button" onclick="renameMindmap(event, ${item.id})">Rename</button>
                    <button class="action-button delete" onclick="deleteMindmap(event, ${item.id})">Delete</button>
                </div>
            </div>
        `
            )
            .join('');

        const mindmapItems = document.querySelectorAll('.mindmap-item');
        mindmapItems.forEach((item, index) => {
            setTimeo