display alerts when errors happen