Preserving state across sidebar pages

Figured I would point people that find this thread to this other post I made answering how to preserve state across sidebar page navigation. Ignore the rant at the start, LOL.