updated view event functionality