Let the save handler only be active in edit mode