editing create and view event