Hex add selected attribute.

initial the isSelected.