creted post resource and updated index and show views