Add and Delete Event work but not edit event