edit for thread list and thread detail