drag and drop changes start and end