toggle auto restart