compiled back to version
fixed drag and drop; added customized msgbox and function; check for cancel and repaint