changed template resource id to template