Move dialogs.error inside utils methods