Store and Restore expansion state
- Based on labels
Using NSInteger instead of int