 		subOpen.addItem(item)
 
 		item = NSMenuItem(title: "Location", action: #selector(HeliumPanelController.openLocationPress(_:)), keyEquivalent: "")
-		item.target = self.window?.windowController
+		item.target = wc
 		subOpen.addItem(item)
 
-		subMenu.addItem(NSMenuItem.separatorItem())
-
-		item = NSMenuItem(title: "Float Above All Spaces", action: #selector(HeliumPanelController.floatOverFullScreenAppsToggled(_:)), keyEquivalent: "")
+		menu.addItem(NSMenuItem.separatorItem())
+
+		item = NSMenuItem(title: "Playlists", action: #selector(WebViewController.presentPlaylistSheet(_:)), keyEquivalent: "")
+		item.target = self.UIDelegate
+		menu.addItem(item)
+
+		menu.addItem(NSMenuItem.separatorItem())
+
+		item = NSMenuItem(title: "Preferences", action: #selector(menuClicked(_:)), keyEquivalent: "")
+		menu.addItem(item)
+		let subPref = NSMenu()
+		item.submenu = subPref
+
+		item = NSMenuItem(title: "Auto-hide Title Bar", action: #selector(appDelegate.autoHideTitle(_:)), keyEquivalent: "")
+		item.state = NSUserDefaults.standardUserDefaults().integerForKey(UserSetting.AutoHideTitle.userDefaultsKey)
+		item.target = appDelegate
+		subPref.addItem(item)
+
+		item = NSMenuItem(title: "Float Above All Spaces", action: #selector(AppDelegate.floatOverFullScreenAppsPress(_:)), keyEquivalent: "")
 		item.state = 1 - NSUserDefaults.standardUserDefaults().integerForKey(UserSetting.DisabledFullScreenFloat.userDefaultsKey)
-		item.target = wc
-		subMenu.addItem(item)
+		item.target = appDelegate
+		subPref.addItem(item)
 		
+		item = NSMenuItem(title: "Home Page", action: #selector(AppDelegate.homePagePress(_:)), keyEquivalent: "")
+		item.target = appDelegate
+		subPref.addItem(item)
+
 		item = NSMenuItem(title: "Magic URL Redirects", action: #selector(AppDelegate.magicURLRedirectToggled(_:)), keyEquivalent: "")
 		item.state = 1 - NSUserDefaults.standardUserDefaults().integerForKey(UserSetting.DisabledMagicURLs.userDefaultsKey)
 		item.target = NSApp.delegate
-		subMenu.addItem(item)
-
-		item = NSMenuItem(title: "Title Bar", action: #selector(menuClicked(_:)), keyEquivalent: "")
-		subMenu.addItem(item)
-		let subTitleBar = NSMenu()
-		item.submenu = subTitleBar
-
-		item = NSMenuItem(title: "Auto Hide", action: #selector(HeliumPanelController.autoHideTitle(_:)), keyEquivalent: "b")
-		item.state = NSUserDefaults.standardUserDefaults().integerForKey(UserSetting.AutoHideTitle.userDefaultsKey)
-		item.target = wc
-		subTitleBar.addItem(item)
+		subPref.addItem(item)
 
 		item = NSMenuItem(title: "Translucency", action: #selector(menuClicked(_:)), keyEquivalent: "")
-		subMenu.addItem(item)
+		subPref.addItem(item)
 		let subTranslucency = NSMenu()
 		item.submenu = subTranslucency
 
-		item = NSMenuItem(title: "Enabled", action: #selector(HeliumPanelController.translucencyPress(_:)), keyEquivalent: "t")
+		item = NSMenuItem(title: "Enabled", action: #selector(HeliumPanelController.translucencyPress(_:)), keyEquivalent: "")
 		item.state = wc.translucencyEnabled == true ? NSOnState : NSOffState
 		item.target = wc
 		subTranslucency.addItem(item)

		let subOpacity = NSMenu()
		item.submenu = subOpacity

		item = NSMenuItem(title: "10%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "1")
		item.state = (10 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "20%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "2")
		item.state = (20 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "30%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "3")
		item.state = (30 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "40%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "4")
		item.state = (40 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "50%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "5")
		item.state = (50 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "60%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "6")
		item.state = (60 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "70%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "7")
		item.state = (70 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "80%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "8")
		item.state = (80 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "90%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "9")
		item.state = (90 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)
		item = NSMenuItem(title: "100%", action: #selector(HeliumPanelController.percentagePress(_:)), keyEquivalent: "0")
		item.state = (100 == opacity ? NSOnState : NSOffState)
		item.target = wc
		subOpacity.addItem(item)

		item.state = translucency == .MouseOutside ? NSOnState : NSOffState
		item.target = wc
		subTranslucency.addItem(item)
	}
}

class WebViewController: NSViewController, WKNavigationDelegate {
