Added actions to the buttons to incorporate a random pulsing effect.