Making the control's button work