Set state of items using Map

Asking the last question in a separate topic