Updated index and show methods for Posts view