Retirement tax questions

I have read section 3B but still not fully understanding the tax on an Illinois pension and living in Wisconsin. I plan on moving to Wisconsin soon, while working in Illinois. I plan to retire in 25 years and when I do retire I will have to pay tax on my pension when I retire? Also if I have property in another state can I claim that my primary residence to avoid the pension tax?