update template to current app structure