Make information if tree item is expanded/collapsed persistent