added eventable functionality to views