adding event listening for drag and drop