Add undo function - hit 'r' when labeling