Added *some* functionality to the buttons.