moved graphing controller logic to Grapher