Change state of button once pinged