add signal and slots for thread