Update controller to address foreign key when deleting