Hook before any page slides into view