added dependent destroy to models
added flash notices