add disconnect listner