Toggle xhr functional