Created a post controller and updated the show file