move undo, redo to QVecotr with index