added ability to show posts at index