--HR-307 added save function in tpl