change analyze ui to support states_a, party_a etc.