comment about widget factory in template