Created the edit button for templates