Added undo and redo buttons