template view is working