thread code in Button.fireButtonClicked()