change book before create to before save