Turn button off in a thread