I don't really understand how it works. Is it just when the dog pulls the leash extends?