thread view and controller