add all required fields to metadata and include in json
remove unused pagetemplate