Adds ThreadElement
Adds thread window functionality