first implementation of the context menu
wip listen to document for copy-paste changes
Simplify event listeners