adding support for pages