added logic in tpl for custom label