refactored east/west panelToggle functions