added first pass of page template class for plugins