Add directives for mouse events on content