adding view event