remade the panel size framework, now ready to implement panelManager