added template for editing