changed error box to critical