updated the way the error dialog view model is used to avoid accidentally navigating to it