all the buttons using single method