added direction for drag and drop