pulsing buttons and button sensing