The move function is also calling this API: move is implemented as delete + add. When moving a selected item, it should not be deselected, hence the extra parameter.