Update the example to use the new page change delegate methods