connect mainmenu preferences to AppDelegate#showPreferences:sender: method