Updated tag drag-drop

Updated the drag-drop code to match EHs new format and improved its
function