tContent = isShowingOptions
                ? 'Hide Options'
                : 'Options';
        });

        if (mindmapId) {
            const id = parseInt(mindmapId);
            if (!isNaN(id)) {
                setTimeout(() => {
                    const history = JSON.parse(localStorage.getItem('mindmap-history') || '[]');
                    const mindmap = history.find(item => item.id === id);
                    if (mindmap) {
                        showMindmap(id);
                    } else {