Replace empty UID field with path to HTML element