Added events to listen to when an item has been selected or deselected.