Add modal dialog for error