hooked up dropdown selection to graph