copyDialog class