This is a pretty straight forward change to remove the global front variable and instead use a couple of accessor functions. This hopefully will make it easier to keep track and debug when the front screen changes.
Still have a long way to go.
This is mostly a "dangling if" cleanup, but I did add some other comments here and there!