Hack and hooks for drag and drop