double buttons and accompanying code