ch = document.createElement('label');
        themeSwitch.classList.add('form-switch');
        themeSwitch.innerHTML = `
        <input type="checkbox">
        <i class="form-icon"></i><span id="theme-switch-label">Dark mode</span>
        `;
        themeSwitchWrapper.appendChild(themeSwitch);
        let checkbox = themeSwitchWrapper.querySelector('input[type="checkbox"]');
        // set default
        if (window.getTheme() == 'dark') {
          checkbox.checked = true;
        } else {
          che