Drag and drop functionality and modal window