added showErrorAlert extension