actually set the state if you pick one from the statepicker. closes #542