Using multiple HTML element on popup


I can’t get html element to show/hide using custom states (have two html elements located in their own group) when a button is click. The states are set and working - set state HTML 1 or HTML 2 but only the first one clicked is displayed. It hides when the state is changed but the second HTML element will not show.

Is there a restriction of using multiple HTML elements in same element?