You can avoid all the problems using classes instead of IDs because they can be reused across Alle layouts and scenes without changing the ID all the time. ID's have the downside that they have to be unique across the whole page ... and hype even though it has scenes lives on only one page only .