working out drag and drop