avoid dlg from write action