added edit template and helper code