[CDE-406]: refactor addRowOperations and some minor adjustments to drag and drop
[CDE-406]: unit tests for drag and drop