add id to element when parsed