added dependent: :destroy to models