maybe we can early return if inEditMode is false.