adds support for custom pages