After publishing to html next button accidentallytriggers course menu on each click

neko Community Member Posts: 2
I created custom images for course help menu and a Resources menu. I then added menus for theses images. I have the menus initially hidden and I then added on click Toggle Visiblity action with the target being menu. Then I created a hide action toggle visibility target Menu.

I have a next button on the bottom of the page. To bring learners to the next page.

In preview mode when I click on the help menu and resources menu it works fine, and when I click on the next button it takes me to the next page without showing the menus which is what I want. However, when I publish to html everytime I click the next button it not only takes me to the next page it also shows the course help menu and resource menus. How do I fix this?