added ability to customize widget template by widget id