Add generating ID for elements