refactored views by use of partials to tidy up code in posts/show.html.erb