Add "end time" field to templates