State tax filing

So am I understanding this right, I have to file a non resident Arizona for the unemployment I received and then a part year Arizona for the wages earned while living there and a part year Illinois for the Arizona unemployment I received while a resident.