changed index to show posts