got rid of the need for htmlCollection array by storing data in the collection  itself