State app use variables for states rather than strings