added dragbox method in GUI.