add fields to template