Extreme refactoring. Crashes on overlay show.

Methods for showing/hiding overlay elements on the fly need to be written.