Button navigation

Hey, I have built some navigation, but I’m unsure how to make it work in the state machine. Each click on the buttons will play a disappear/appear animation of the content above the navigation.

The problem is of course that (currently) when I click the right button, page 1 content plays followed by page 2 content, because each listener is attached to the same element.

So my question is: Do I need to have separate button elements for each “page”, that needs to be shown/hidden or is there some other way that is less troublesome?