Undo redo for open diagram

Bug fixed for open diagram.
Undo redo now working with open, new, and save