Updated network class to handle resetting xhr