changed undo and redo to buttons