added drag and drop fo the window