text.addEventListener("blur", () => {
        editingEl.textContent = text.value;
        currentTitle = text.value;
        text.remove();
    });
    
    text.addEventListener("keypress", (e) => {
        if (e.key === "Enter") {
            editingEl.textContent = text.value;
            currentTitle = text.value;
            text.remove();
        }
    });