Add event for saving.