added support to display scope var in templates

This fix allows {modal_custom_data} scope to be used in template.