added support for custom pages of themes