Rough POC for persisting state between view switches.