can now move dialog box
fixed dialog resizing and moving