add jQuery to dynamically change state info