Improved menubar and a small refactoring in package management