modify delete templayer when passing teamid