Finish edit event