update and delete for calendar