Add events onContentBeforeSave and onContentAfterSave