state selector working
update