Now saving saving templateName to sCurTemplate when creating documents so users come back to the last template with which they created a document.