generating values for the buttons