- adding JS to render right-click menu
- re-factoring trigger activate and trigger deactivate actions