changed getName to getText on the buttons