changing the button to pull down resistor