added support for publishing pages