added handling of model and collection events in view