Add lifecycle methods for Page