relocate dialog to dialog package