addEvent, deleteEvent fixed