selectParents : added variable selectParents  - when true selects all the parents of the child node in the hierarchy above. False => only current node is selected