Called when a page gains control, either at the beginning for a response, or in the middle when switched for rendering. Defaults to nothing.