Fix bugs and add direct show/hide links for charts