Added Save template support
Added SaveAs support