to make a dialog in D3Ddemo10