added template_settings realtion