Added scratchspace code in handleDrop