Cleanup drag and drop code.