Functional updates

destroy action updated working and relationships added between models