Fixed bugs with plugins menu

- Added rebuild function for plugins menu to fix duplicates in menu.
- Fixed so correct plugin runs on click.