[UI] Now that I made a helper function for the menu entries, $pluginDirectory needs to be a global.