use dialogs to show errors