added helper methods to expand and collapse property trees