Working multithreading.....working on the frezzing qt bug