Need to store the button pressed in a variable so we can use it in the anonymous callback function