Extending Hierarchy Macro functionality by adding two parameters: openNode and collapsed