Fixed nullPointer, added zoomAndCenter to selected Graph to restoreGraph
and started implementing undo