event type edit and view