added support for pages