connected button and opened thread