Added Undo and Solve. Implements New and Undo buttons