drag and drop working for both directions