Drag and drop functions added