added state id to span