finishing editing dialog