input updates with the respective button state