Declaratively add event listeners to your views.