Onclick only working once on the site

I removed all of the other $w.onReady(). There is only one at the beginning. This is what I have in there now and it is still the same thing. It works great on the first page that loads, but then it doesn’t work again after that unless I reload the page.

$w . onReady ( function () {
$w ( “#SolutionsButton” ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “Solutions” )
$w ( ‘#Submenu1’ ). show ()
});
$w ( “#Whoisagilebutton” ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “AboutUs” )
$w ( ‘#Submenu1’ ). show ();
});
$w ( “#SupportButton” ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “Support” )
$w ( ‘#Submenu1’ ). show ();
});
$w ( “#CloudVoiceButton” ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “CloudVoiceMenu” );
});
$w ( “#OnSiteVoiceButton” ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “OnSiteMenu” );
});
$w ( ‘#button85’ ). onClick (() => {
$w ( ‘#Submenu1’ ). changeState ( “Support” )
});
});

Any ideas? I don’t see any errors or anything. Thanks for any help or advice.