view setEvents