terminating IFR in visual conditions at non towered airport. I was on an ifr flight plan the other day in visual conditions. About 15 miles out I asked the controller to go visual and terminate ifr. He can back with a question about whether I would like further advisories. i said yes. I then proceeded to squawk Vfr. He came back a minute later and asked if I changed transponder. I said yes and he mentioned that I should have not. I am confused to what happened. My intention was to close ifr flight plan and continue Vfr . What happened?