Moved addCollectionToTemplate() to the collection itself