Adding edit_template files promise