add code samples for event new/edit/destroy