finished thread.html functionality