Add ajax thread refresh