allow setSelected by index
Merge pull request #9 from nickb1080/feat/set-by-index

allow setSelected by index