refactor into controller now builds. without attaching the controller, GraphView merely displays a graph