allow setSelected by index