Created tree-accordian factory to support nodes