add ids to elements