Make a parent child relation between threads.
Added thread loading by ajax.