rewrite view by simplifying template call