update panelGrid. clean code