wired up the buttons