add methods to the buttons