Button not working correctly. Static bool, Potentiometer. uno

but now there is no "pull-down". you could add a resistor or change the logic to use the internal pull-up, and then you might want to recognize a button press and toggle a state