connect gui signal to worker thread