eliminate horizontalPanel and pull left/right functions