fixed toggle button

the button was reverting to null after page load when another button was
clicked