[Tak] Use setId function to assign ids to items and then recover the functionality of the webpage