Added thread in dialog