multi selection and undo redo working