admin template editor - bug fix

save as template now working.