Only adds undo/redo menu bar items when becoming first responder, and removes them when resigning