Added ErrorView to handle error dialog events and styling