EPD-34: created an interface for navigation panels and cleaned up some code.