Added update and delete functionality to events