Bunch of misc fixes

1. Make context menu work
2. Make tools refresh correctly
3. Theme context menus correctly