Reformatting
Put selected state in component local state

In Om, it is preferred that transient component state is placed in
'component local state' rather than making changes to the app model.
Reformat of white-space