making it possible to edit the template. Closes #1