making collections template more self-contained