created post resource and updated index and show views