more dialog_ref()/dialog_unref() calls