added thread view, ajax error alerts