Add hooks for pages to know more about their context