implement action for edit event