Add `id` attribute to some elements