added show/hide buttons to graph