adding locks and socket messages for dnd (drag n drop)