Nested show/hide conditionals: Not working as expected