implemented change template for edit