add event to edit button