updated button circuit