Connecting the buttons