Refactor set template in CSS tech