Add buttons to toggle between two kinds of graphs