event directives only in browser