edit an event in the backend