Try new setSelected function