added support for newpagetemplate plugin