event handler was unconditionally set up. fixed.
added panel.isHome() helper and refactored code to use it
added panel.getNext() and panel.getPrevious() helpers and refactored code to use them