destroy details when model destroyed