MenuPanel is refactored.