added edit link to template