worked on drag and drop functionality for main window