init class ThreadController