finalizing done dialog