added state selection for results