Work. Add selected flag
NOT Work, but this version have interesting codes