example illustration how to bind DOM events to view methods