created ErrorBox React class