added related templates model