created general DialogWrapper
implemented drop handler
implemented drag handler