This is like Card Layout in Java / Tab navigation in C#. No need to tweak around index, manually set visibility on/off for all contents. You can just simply invoke ShowExclusively action specifying the card item ID of the content.