added the forms for thread
Merge branch 'thread'