use declarative event handlers as recommended in web components style guide