added conditional in show.html for bar chart