added templateDate to view