updated the controller with show action and views with show.html.erb