Move trait DialogUtil to dialog.rs