Removed dup - still need to put the selected state at the right index.