work in progress for edit event.