Linked up all the buttons.