added relation to template and product extras