unctions

      function switchTab(tabsContainer, tabName, updateRoutingConfigFlag = true) {
        const tabs = tabsContainer.querySelectorAll('.tab');
        const tabContents = tabsContainer.closest('.card').querySelectorAll('.tab-content');

        tabs.forEach(tab => tab.classList.remove('active'));
        tabContents.forEach(content => content.classList.remove('active'));

        tabsContainer.querySelector(`.tab[data-tab="${tabName}"]`).classList.add('active');
        tabsContainer.closest('.ca