add type of event, task info and task edit