refactoring student info panel sizing