Changing the format of the output file to include all displayed options from both buttons