Preserve toggle states when tabs are switched


Nested ui views create new scopes, so make sure the states are shared via inheritance.