update to working edit template