Finished undo/redo funcionality & code view