More fixes to thread.html
Implements post editor