move event directives to another module