onEvent method for View DOM events