updating mapping view to take template name as param