added ability to delete and update associated records