Selecting component ID on dropping a task on the canvas.