added template and updated DOM