modified template to add date field