Move HTML part of oid to template + replace outside the tpl