added menubar for .local/share/applications
refactoring