wired in js to send/validate template on create