added handling of exceptions in OnNavigatedFrom and updated the ErrorDialogViewModel to handle this errors in a specifically