create events for page