added event management for entry and exit of a page controller