Change external templates to inner