tried to add index to show all posts - issue