trying to associate events with pages