add logging to checkUnsavedChanges in TabEditor.js