Update and delete for related model