Add an event that fires before the notebook saves