standard Update and Delete function