refactor with template
refactor newset to event, add event delete mockup