added data to the posts collection
wired collection to posts template