event delete and update