adding template type editor

adding editor to edit template files inside the backend