added updatePanels()