                   const onHidden = () => {
                        cleanup();
                    };
                    const cleanup = () => {
                        cancelBtn.removeEventListener("click", onCancel);
                        okBtn.removeEventListener("click", onConfirm);
                        modalEl.removeEventListener("hidden.bs.modal", onHidden);
                        settingsModal.classList.remove("dimmed");
                    };

                    cancelBtn.addEventListener("c