because it is not always the current index, show and hide can be used on any item. In the initial setup it loops through each child, checks state, then runs show/hide to set all the code to meet accessibility requirements