refactoring of ManagerPanel.