some fixes

I still couldnt quite get it to work. But this should make it a little bit cleaner.

Note that

    $elementId = 'eip_' . String::uuid();

is required sine uuids can start with numeric values - and IDs in HTML are not allowed to do that.