Made references draggable and droppable