completed edit event functionality