added GraphView class to manage multiple views at once.