Added automated IDs and innerWrapper to avoid overwriting IDs of the Element.