modification of preview and publish templates