fix if statement in show.html.erb