templates fixed to allow adding and editing sets