implemented view event binding