remove the dialog which not used.