edit disconnect function