Added Update and Delete functionality