Added basic support for page changes