Update PanelFactory.lua