Add collapseAll / expandAll as  internal method  #48