added thread in class

still not working for real time display