adding request header solved infinte template requesting