need further development for thread view controller