first bit of drag and drop