added undo checkpoint when creating a graph object from the put menu