Added on back pressed to the demo
Expose ability to save and restore state
Bug fixes in expandPanel