move tpl defined location and modified templates post method