Using action buttons to add variables to the data