Finished selecting items

Leaf nodes in the market tree are closed when another leaf node is
opened.
Items are selected and get the selected class when they are clicked.