added Posts controller functions index and show