Added delegate methods for will change page and did change page.